package com.procidanapps.imisteridiprocida;


import com.google.analytics.tracking.android.EasyTracker;
import com.procidanapps.imisteridiprocida.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class HighscoresActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		//Remove title bar
	    this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_punteggi);

		 WebView browser = (WebView) findViewById(R.id.webView1);
		 browser.setWebViewClient(new WebViewClient());
		 browser.setWebChromeClient(new WebChromeClient());
		 browser.getSettings().setJavaScriptEnabled(true);
		 browser.getSettings().setLoadWithOverviewMode(true);
		 browser.getSettings().setUseWideViewPort(true);
	
		 String url = "http://misteridiprocida.altervista.org/halloffame.php";
	     //browser.loadUrl("http://unoprocidaresidente.altervista.org/i-misteri-di-procida/index.html");
		 browser.loadUrl(url);
	}
	@Override
	  public void onStart() {
	    super.onStart();

	    EasyTracker.getInstance(this).activityStart(this);  // Add this method.
	  }

	  @Override
	  public void onStop() {
	    super.onStop();

	    EasyTracker.getInstance(this).activityStop(this);  // Add this method.
	  }

}